package com.itheima.service;

import com.itheima.constant.PageResult;
import com.itheima.constant.QueryPageBean;
import com.itheima.domain.User;

import java.util.List;

/**
 * @author Zhang_Han
 * @version 1.0
 * @date 2020/10/11 13:33
 */
public interface UserService {

    //根据姓名查找;
    public User findByUsername(String username);

    //分页条件查询;
    public PageResult findPage(QueryPageBean queryPageBean);

    //添加数据;
    public void add(User user, Integer[] roleIds);

    //删除数据;
    public void deleteByid(Integer id);

    //根据ID查询用于编辑的页面回显;
    public User findByid(Integer id);

    //编辑页面的权限数据回显;
    public List<Integer> getRoleIds(Integer id);

    //修改
    public void update(User user, Integer[] roleIds);
}
